target:

test:
	g++ -o test1 test1.cpp -I./include
	g++ -o test2 test2.cpp -I./include
	g++ -o test31 test31.cpp -I./include
	g++ -o test32 test32.cpp -I./include

run:
	./test1
	./test2
	./test31
	./test32

BASE = report
LATEX = story
PDF = $(BASE).pdf
DVI = $(BASE).dvi
TEX = $(BASE).tex
LOG = $(BASE).log
AUX = $(BASE).aux
OUT = $(BASE).out
TEX_TYPE = xelatex
DVI_PDF = dvipdfm

$(LATEX): $(PDF)

$(PDF): $(DVI)
	$(DVI_PDF) $^ -o
	
$(DVI): $(TEX)
	$(TEX_TYPE) $^

clean:
	-rm -r test1 test2 test31 test32 $(LOG) $(DVI) $(AUX) $(OUT) $(PDF)